package com.lhkj.ct.meta.modules.patient.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lhkj.ct.base.validator.group.ValGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 档案人群标签
 * </p>
 *
 * @author jobob
 * @since 2023-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblPatCrowdTag对象", description="档案人群标签")
public class TblPatCrowdTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "标签id不能为空", groups = {ValGroups.Update.class})
    @ApiModelProperty(value = "标签id")
    private String id;

    @NotBlank(message = "请输入标签名称", groups = {ValGroups.Insert.class, ValGroups.Update.class})
    @ApiModelProperty(value = "名称")
    private String tagName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "人数")
    private Long counts;
}
